package com.fl.niu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author admin
 */
@Data
@TableName("admin_permission")
public class AdminPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 父级ID
     */
    @TableField("pid")
    @ApiModelProperty(value = "父级权限id")
    private Long pid;
    /**
     * 父级ID
     */
    @TableField("name")
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 父级ID
     */
    @TableField("value")
    @ApiModelProperty(value = "权限值")
    private String value;
    /**
     * 父级ID
     */
    @TableField("icon")
    @ApiModelProperty(value = "图标")
    private String icon;
    /**
     * 父级ID
     */
    @TableField("type")
    @ApiModelProperty(value = "权限类型：0->目录；1->菜单；2->按钮（接口绑定权限）")
    private Integer type;
    /**
     * 父级ID
     */
    @TableField("uri")
    @ApiModelProperty(value = "前端资源路径")
    private String uri;
    /**
     * 父级ID
     */
    @TableField("status")
    @ApiModelProperty(value = "启用状态；0->禁用；1->启用")
    private Integer status;
    /**
     * 父级ID
     */
    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 父级ID
     */
    @TableField("sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;


}